package cn.koala.key.firstmaintain.entity.enums;

import cn.koala.key.common.enums.HasCaption;
import cn.koala.key.common.enums.HasCode;

/**
 * 首保卡状态
 *
 * @author liutao
 * @date 2021/1/26
 */
public enum  FirstMaintainCardStatus implements HasCode, HasCaption {
    /** 未入库 */
    UN_IN_BOUND(1, "未入库"),
    /** 在库 */
    IN_BOUND(2, "在库"),
    /** 借出 */
    LENDING(3, "借出");

    FirstMaintainCardStatus(Integer code, String caption) {
        this.code = code;
        this.caption = caption;
    }

    private Integer code;
    private String caption;

    @Override
    public String getCaption() {
        return caption;
    }

    @Override
    public Integer getCode() {
        return code;
    }
}
